package modelimplementation

import "time"

/*
 * 每周周五进行支付
 */

type WeeklySchedule struct {
}

func (ws WeeklySchedule) IsPayData(payDate time.Time) bool {
	return payDate.Weekday() == time.Friday
}

func (ws WeeklySchedule) GetPayPeriodStartDate(payPeriodEndDate time.Time) time.Time {
	return payPeriodEndDate.AddDate(0, 0, -6)
}

